//
//  UIBarButtonItem+Extension.swift
//  WeiboSwift
//
//  Created by LYFDevelopment on 2017/4/13.
//  Copyright © 2017年 LYFDevelopment. All rights reserved.
//

import UIKit

extension UIBarButtonItem{
    
    convenience init(title:String?,fontSize:CGFloat=14,target:AnyObject?,action:Selector) {
        let btn = UIButton.init(title: title, fontSize: fontSize, normalColor: UIColor.blue, highlightedColor: UIColor.orange)
        btn.addTarget(target, action: action, for: .touchUpInside)
        self.init(customView:btn)
    }
}
